package com.iss.okair.controller.assetstrans;

import com.iss.common.Message;
import com.iss.common.UuidTools;
import com.iss.okair.db.entity.AssetsCar;
import com.iss.okair.db.entity.AssetsTranUse;
import com.iss.okair.db.entity.Assetstrans;
import com.iss.okair.service.trans.CarTransService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/logic/trans/car")
public class CarTransController {
    @Autowired
    private CarTransService service;
    @RequestMapping("/checkin/list")
    public List<AssetsTranUse> find(AssetsTranUse model){
        return service.find(model);
    }
    @RequestMapping("/checkout/list")
    public List<AssetsTranUse> findout(AssetsTranUse model){
        return service.findout(model);
    }
    @RequestMapping("/history/{assetsid}")
    public List<AssetsTranUse> Record(@PathVariable String assetsid){
        return service.Record(assetsid);
    }

}
